﻿using System;
using Dapper.Contrib.Plus;

namespace Auth.Entities.System
{
    /// <summary>
    /// 模块名
    /// </summary>
    [Table("sys_modules")]
    public class Module : SeedWork.Entity
    {
        /// <summary>
        /// 上级节点
        /// </summary>
        [FieldName("parent_id")]
        public Guid? ParentID { get; set; }

        /// <summary>
        /// 模块名称
        /// </summary>
        [FieldName("name")]
        public string Name { get; set; }

        /// <summary>
        /// 模块图标名
        /// </summary>
        [FieldName("icon")]
        public string Icon { get; set; }

        /// <summary>
        /// 状态，0:启用，1:禁用
        /// </summary>
        [FieldName("status")]
        public short? Status { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [FieldName("notes")]
        public string Notes { get; set; }

        /// <summary>
        /// 数据时间戳
        /// </summary>
        [FieldName("timestamp")]
        public long Timestamp { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [FieldName("created")]
        public DateTime? Created { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [FieldName("created_user_id")]
        public Guid? CreatedUserId { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [FieldName("updated")]
        public DateTime? Updated { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        [FieldName("updated_user_id")]
        public Guid? UpdatedUserId { get; set; }
    }
}
